package com.songshan.exception;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;

public class ExceptionUtil {

    public static String getExceptionInfo(Throwable e){
		StringBuilder sb = new StringBuilder();
		ByteArrayOutputStream baos = new ByteArrayOutputStream();
		e.printStackTrace(new PrintStream(baos));
		sb.append(baos.toString());
		String msg = sb.toString();
		return msg;
	}
}
